from django.contrib import admin

# Register your models here.

from .models import CoursesInfo, LessonInfo, VideoInfo, SourceInfo


class CoursesInfoXadmin(admin.ModelAdmin):
    lilst_display = ["image", "name", "study", "study_num", "level", "love_num", "click_num", "category",
                     "teacher_tell", "add_time"]


class LessonInfoXadmin(admin.ModelAdmin):
    list_display = ["name", "add_time"]


class VideoInfoXadmin(admin.ModelAdmin):
    list_display = ["name", "study_time", "url", "add_time"]


class SourceInfoXadmin(admin.ModelAdmin):
    list_display = ["name", "down_load", "add_time"]


admin.site.register(CoursesInfo, CoursesInfoXadmin)
admin.site.register(LessonInfo, LessonInfoXadmin)
admin.site.register(VideoInfo, VideoInfoXadmin)
admin.site.register(SourceInfo, SourceInfoXadmin)
